#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

#define MAX_LENGTH_PF_EXPR 127

typedef struct watchpoint {
	int NO;
	struct watchpoint *next;

	/* TODO: Add more members if necessary */
	uint32_t value;		//original value of the expr
	char expr[MAX_LENGTH_PF_EXPR + 1];
} WP;

//declaration of the functions in watchpoint.c
WP *new_wp();
void free_wp(int no);
void print_wp();
bool check_wp();

#endif
